package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 聚信立配置 Created by tongweijie on 2017/8/1.
 */
@Component
/*@ConfigurationProperties(prefix = "juxinli")
@PropertySource("classpath:properties/juxinli.properties")*/
@DisconfFile(targetDirPath = "disconf", filename = "juxinli.properties")
public class JuXinLiProperties {
    private String orgName;
    private String clientSecret;
    private String hours;
    private String accessTokenReportUrl;
    private String accessReportDataUrl;
    private String accessRawDataUrl;
    private String accessEBusinessRawDataUrl;
    private String accessTravelRawDataUrl;
    private String accessApplyFromByTokenUrl;
    private String accessRawDataByTokenUrl;
    private String accessEBusinessRawDataByTokenUrl;
    private String accessReportDataByTokenUrl;
    private String submitFromDataListUrl;
    private String phoneInfoUrl;
    private String blacklistInfoUrl;
    private String blacklistMobileUrl;
    private String tounaCollectTokenUrl;
    private String baseUrl;
    private String generateTokenUrl;
    private String collectReqUrl;
    private String resetPwdReqUrl;
    private String getSupportDataSourcesUrl;

    //蜜罐
    private String miguanTokenUrl;
    private String miguanQueryurl;
    private String miguanVersion;

    //重置密码
    private String resetTokenUrl;
    private String resetQueryurl;


    @DisconfFileItem(name = "juxinli.reset.tokenurl", associateField = "resetTokenUrl")
    public String getResetTokenUrl() {
        return resetTokenUrl;
    }

    public void setResetTokenUrl(String resetTokenUrl) {
        this.resetTokenUrl = resetTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.reset.queryurl", associateField = "resetQueryurl")
    public String getResetQueryurl() {
        return resetQueryurl;
    }

    public void setResetQueryurl(String resetQueryurl) {
        this.resetQueryurl = resetQueryurl;
    }

    @DisconfFileItem(name = "juxinli.miguan.tokenurl", associateField = "miguanTokenUrl")
    public String getMiguanTokenUrl() {
        return miguanTokenUrl;
    }

    public void setMiguanTokenUrl(String miguanTokenUrl) {
        this.miguanTokenUrl = miguanTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.miguan.queryurl", associateField = "miguanQueryurl")
    public String getMiguanQueryurl() {
        return miguanQueryurl;
    }

    public void setMiguanQueryurl(String miguanQueryurl) {
        this.miguanQueryurl = miguanQueryurl;
    }

    @DisconfFileItem(name = "juxinli.miguan.version", associateField = "miguanVersion")
    public String getMiguanVersion() {
        return miguanVersion;
    }

    public void setMiguanVersion(String miguanVersion) {
        this.miguanVersion = miguanVersion;
    }

    /**
     * token失效时间 单位秒
     */
    private long tokenLoseTime;

    @DisconfFileItem(name = "juxinli.tokenLoseTime", associateField = "tokenLoseTime")
    public long getTokenLoseTime() {
        return tokenLoseTime;
    }

    public void setTokenLoseTime(long tokenLoseTime) {
        this.tokenLoseTime = tokenLoseTime;
    }


    @DisconfFileItem(name = "juxinli.orgName", associateField = "orgName")
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @DisconfFileItem(name = "juxinli.clientSecret", associateField = "clientSecret")
    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    @DisconfFileItem(name = "juxinli.hours", associateField = "hours")
    public String getHours() {
        return hours;
    }

    public void setHours(String hours) {
        this.hours = hours;
    }

    @DisconfFileItem(name = "juxinli.accessTokenReportUrl", associateField = "accessTokenReportUrl")
    public String getAccessTokenReportUrl() {
        return accessTokenReportUrl;
    }

    public void setAccessTokenReportUrl(String accessTokenReportUrl) {
        this.accessTokenReportUrl = accessTokenReportUrl;
    }

    @DisconfFileItem(name = "juxinli.accessReportDataUrl", associateField = "accessReportDataUrl")
    public String getAccessReportDataUrl() {
        return accessReportDataUrl;
    }

    public void setAccessReportDataUrl(String accessReportDataUrl) {
        this.accessReportDataUrl = accessReportDataUrl;
    }

    @DisconfFileItem(name = "juxinli.accessRawDataUrl", associateField = "accessRawDataUrl")
    public String getAccessRawDataUrl() {
        return accessRawDataUrl;
    }

    public void setAccessRawDataUrl(String accessRawDataUrl) {
        this.accessRawDataUrl = accessRawDataUrl;
    }

    @DisconfFileItem(name = "juxinli.accessEBusinessRawDataUrl", associateField = "accessEBusinessRawDataUrl")
    public String getAccessEBusinessRawDataUrl() {
        return accessEBusinessRawDataUrl;
    }

    public void setAccessEBusinessRawDataUrl(String accessEBusinessRawDataUrl) {
        this.accessEBusinessRawDataUrl = accessEBusinessRawDataUrl;
    }

    @DisconfFileItem(name = "juxinli.accessTravelRawDataUrl", associateField = "accessTravelRawDataUrl")
    public String getAccessTravelRawDataUrl() {
        return accessTravelRawDataUrl;
    }

    public void setAccessTravelRawDataUrl(String accessTravelRawDataUrl) {
        this.accessTravelRawDataUrl = accessTravelRawDataUrl;
    }

    @DisconfFileItem(name = "juxinli.accessApplyFromByTokenUrl", associateField = "accessApplyFromByTokenUrl")
    public String getAccessApplyFromByTokenUrl() {
        return accessApplyFromByTokenUrl;
    }

    public void setAccessApplyFromByTokenUrl(String accessApplyFromByTokenUrl) {
        this.accessApplyFromByTokenUrl = accessApplyFromByTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.accessRawDataByTokenUrl", associateField = "accessRawDataByTokenUrl")
    public String getAccessRawDataByTokenUrl() {
        return accessRawDataByTokenUrl;
    }

    public void setAccessRawDataByTokenUrl(String accessRawDataByTokenUrl) {
        this.accessRawDataByTokenUrl = accessRawDataByTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.accessEBusinessRawDataByTokenUrl", associateField = "accessEBusinessRawDataByTokenUrl")
    public String getAccessEBusinessRawDataByTokenUrl() {
        return accessEBusinessRawDataByTokenUrl;
    }

    public void setAccessEBusinessRawDataByTokenUrl(String accessEBusinessRawDataByTokenUrl) {
        this.accessEBusinessRawDataByTokenUrl = accessEBusinessRawDataByTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.accessReportDataByTokenUrl", associateField = "accessReportDataByTokenUrl")
    public String getAccessReportDataByTokenUrl() {
        return accessReportDataByTokenUrl;
    }

    public void setAccessReportDataByTokenUrl(String accessReportDataByTokenUrl) {
        this.accessReportDataByTokenUrl = accessReportDataByTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.submitFromDataListUrl", associateField = "submitFromDataListUrl")
    public String getSubmitFromDataListUrl() {
        return submitFromDataListUrl;
    }

    public void setSubmitFromDataListUrl(String submitFromDataListUrl) {
        this.submitFromDataListUrl = submitFromDataListUrl;
    }

    @DisconfFileItem(name = "juxinli.phoneInfoUrl", associateField = "phoneInfoUrl")
    public String getPhoneInfoUrl() {
        return phoneInfoUrl;
    }

    public void setPhoneInfoUrl(String phoneInfoUrl) {
        this.phoneInfoUrl = phoneInfoUrl;
    }

    @DisconfFileItem(name = "juxinli.blacklistInfoUrl", associateField = "blacklistInfoUrl")
    public String getBlacklistInfoUrl() {
        return blacklistInfoUrl;
    }

    public void setBlacklistInfoUrl(String blacklistInfoUrl) {
        this.blacklistInfoUrl = blacklistInfoUrl;
    }

    @DisconfFileItem(name = "juxinli.blacklistMobileUrl", associateField = "blacklistMobileUrl")
    public String getBlacklistMobileUrl() {
        return blacklistMobileUrl;
    }

    public void setBlacklistMobileUrl(String blacklistMobileUrl) {
        this.blacklistMobileUrl = blacklistMobileUrl;
    }

    @DisconfFileItem(name = "juxinli.tounaCollectTokenUrl", associateField = "tounaCollectTokenUrl")
    public String getTounaCollectTokenUrl() {
        return tounaCollectTokenUrl;
    }

    public void setTounaCollectTokenUrl(String tounaCollectTokenUrl) {
        this.tounaCollectTokenUrl = tounaCollectTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.baseUrl", associateField = "baseUrl")
    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    @DisconfFileItem(name = "juxinli.generateTokenUrl", associateField = "generateTokenUrl")
    public String getGenerateTokenUrl() {
        return generateTokenUrl;
    }

    public void setGenerateTokenUrl(String generateTokenUrl) {
        this.generateTokenUrl = generateTokenUrl;
    }

    @DisconfFileItem(name = "juxinli.collectReqUrl", associateField = "collectReqUrl")
    public String getCollectReqUrl() {
        return collectReqUrl;
    }

    public void setCollectReqUrl(String collectReqUrl) {
        this.collectReqUrl = collectReqUrl;
    }

    @DisconfFileItem(name = "juxinli.resetPwdReqUrl", associateField = "resetPwdReqUrl")
    public String getResetPwdReqUrl() {
        return resetPwdReqUrl;
    }

    public void setResetPwdReqUrl(String resetPwdReqUrl) {
        this.resetPwdReqUrl = resetPwdReqUrl;
    }

    @DisconfFileItem(name = "juxinli.getSupportDataSourcesUrl", associateField = "getSupportDataSourcesUrl")
    public String getGetSupportDataSourcesUrl() {
        return getSupportDataSourcesUrl;
    }

    public void setGetSupportDataSourcesUrl(String getSupportDataSourcesUrl) {
        this.getSupportDataSourcesUrl = getSupportDataSourcesUrl;
    }
}
